using System.Drawing;
using System.Windows.Forms;

namespace AlohaIM.UI {

	class Systray : Form {
	
		private ContextMenu menu;
		private NotifyIcon icon;
		
		public Systray() {
			this.Text = "Aloha IM";
			
			menu = new ContextMenu();
			
			MenuItem aloha = new MenuItem("Aloha");
			MenuItem exit = new MenuItem("Exit");
			menu.MenuItems.Add(exit);
			exit.MenuItems.Add(aloha);
			
			icon = new NotifyIcon();
			icon.Visible = true;
			icon.Icon = new Icon("app.ico");
			icon.Text = "Click Here!";
			//icon.DoubleClick += new EventHandler(NotifyIconDoubleClick);
			
			icon.ContextMenu = menu;
		}
	}
}
